﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Police.Helpers
{
    public static class AssemblyHelper
    {
        public static List<Type> Find<T>(this Assembly assembly)
        {
            var types = from a in assembly.GetTypes()
                        where a.GetInterfaces().Contains(typeof(T))
                        select a;
            return types.ToList();
        }
    }
}
